package com.hotel.customersystem.service;

import com.hotel.customersystem.pojo.CustomerOrder;
import org.springframework.stereotype.Service;


public interface OrderRedisService {
    //保存一个order到redis
    public boolean saveOrder2Redis(CustomerOrder order);

    //从redis中获得某一个order
    public CustomerOrder getOrderByIdFromRedis(Integer userId,String orderNo);
//
//    //用户不在线，服务器发送的消息 存储到redis中
//    public boolean saveUnPayedMessage2Redis(Integer userId,String orderNo);
//    //用户上线时，读取redis中 的消息
//    public String getUnReadMessageFromRedis(Integer userId,String orderNo);
}
